package cn.com.api.service.impl.base;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiU_dynamic_rule;

import cn.com.api.mapper.ApiU_dynamic_ruleMapper;

import cn.com.api.service.ApiU_dynamic_ruleService;

/**
 * 
 **/
@Service
public class U_dynamic_ruleServiceImplBase {
	@Autowired
	private ApiU_dynamic_ruleMapper apiU_dynamic_ruleMapper;
    
    // 根据id获取
	public ApiU_dynamic_rule findU_dynamic_ruleById(Integer id){
		ApiU_dynamic_rule u_dynamic_rule = apiU_dynamic_ruleMapper.findU_dynamic_ruleById( id );
		return u_dynamic_rule;
	}
    
    //查看数据集
	public List<ApiU_dynamic_rule> findU_dynamic_rules(){
        List<ApiU_dynamic_rule> u_dynamic_rules = apiU_dynamic_ruleMapper.findU_dynamic_rules();
		return u_dynamic_rules;
    }
   
    //根据条件查看数据集
	public List<Map<String, Object>> findU_dynamic_rulesByMap(HashMap condition){
        List<Map<String, Object>> u_dynamic_rules = apiU_dynamic_ruleMapper.findU_dynamic_rulesByMap(condition);
		return u_dynamic_rules;
    }
    
	// 添加
	public int insertU_dynamic_rule(ApiU_dynamic_rule u_dynamic_rule){
		int ret_I= apiU_dynamic_ruleMapper.insertU_dynamic_rule(u_dynamic_rule);
		return ret_I;
	}

	// 修改
	public int updateU_dynamic_rule(ApiU_dynamic_rule u_dynamic_rule){
		int ret_I= apiU_dynamic_ruleMapper.updateU_dynamic_rule(u_dynamic_rule);
		return ret_I;
	}
	
    // 删除
	public int deleteU_dynamic_rule(Integer id){
		int ret_I= apiU_dynamic_ruleMapper.deleteU_dynamic_rule( id );
		return ret_I;
	}
	
    // Foreign keys revelant		
		

	//region Indexs revelant
    
    
    
    
}


